package com.cpit.platform.dao;

import java.util.Collection;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.UserToRole;

public interface UserToRoleRepository extends JpaRepository<UserToRole, Long> {
	@SuppressWarnings("unchecked")
	UserToRole save(UserToRole uToRole);
	void delete(UserToRole uToRole);
	void deleteByUserId(Integer userId);
	UserToRole findById(Integer id);
	List<UserToRole> findByUserId(Integer userId);
	List<UserToRole> findByUserIdIn(Collection<Integer> uIds);
}
